package com.wxlgroup.springboot.entity;
import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
/**
 * @auther:wxl
 * @Date:2022/5/20-05-20-17:39
 * @Description:com.wxlgroup.springboot.entity
 * @Version:1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    @Alias("ID")
    @TableId(type = IdType.AUTO)
    private Integer id;
    @Alias("用户名")
    private String username;
    @Alias("密码")
    private String password;
    @Alias("昵称")
    private String nickname;
    @Alias("邮箱")
    private String email;
    @Alias("地址")
    private String address;
    @Alias("电话号码")
    private String phone;
    @Alias("头像路径")
    private String avatarUrl;
    @Alias("部门名称")
    private int departmentId;
    @Alias("部门名称")
    private String departmentName;
    @Alias("用户创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh-mm-ss")
    private String creat_time;
}
